#ifndef _PROJECT_H
#define _PROJECT_H
#define DEL_NUM  0x7F

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <unistd.h>


#define STR_DATA_MAX_LEN 25

typedef struct student_inf//小头
{
    unsigned int stu_id;
    char stu_name[STR_DATA_MAX_LEN];
    char stu_sex[STR_DATA_MAX_LEN];
    unsigned int stu_score;

    struct student_inf * next;
    struct student_inf * prev;
}STU_NODE,* STU_LINK;

typedef struct teacher_inf
{
    char teacher_name[STR_DATA_MAX_LEN];
    char teacher_passwd[STR_DATA_MAX_LEN];

    STU_LINK head_node; //存放第一个小头节点
}TEA_NODE,* TEA_p;

/*---------------------函数声明-----------------*/
TEA_p Student_Score_Stytem_Init();
void  Start_Ui();
bool Login(TEA_p teacher);
STU_LINK Creat_Student_Inf_Node();
bool Function_Select(TEA_p teacher);
bool Add_Student_Node(TEA_p teacher);
bool Show_All_Student(TEA_p teacher);
bool Delete_Student(TEA_p teacher);
STU_LINK Search_Student(TEA_p teacher);
bool Modify_Student(TEA_p teacher);
bool Free_System(TEA_p teacher);
bool Sort_Score(TEA_p teacher);
char * Hide_Passwd();
#endif